package chen.huai.jie.spring.xmlconfig.web.controller;

import io.swagger.annotations.Api;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "用户信息管理相关API")
@RestController
@RequestMapping(value = "/rabbitmq/sender", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class RabbitMqController extends BaseController {
//    @Autowired
//    private RabbitMqSender rabbitMqSender;
//
////    @Autowired
////    private FanoutExchange outMessageFancoutExchange;
//    @Autowired
//    private Queue outMessageQueue;
//
//    @ApiOperation(value = "发送RabbitMQ的消息.", notes = "根据用户ID获取用户信息")
//    @RequestMapping(value = "/queue", method = RequestMethod.GET)
//    public void outQueue() {
////        UserDTO user = new UserDTO();
////        user.setId(UUID.randomUUID().toString());
////        user.setName("chenhuaijie");
////        rabbitMqSender.sendMessage("", outMessageQueue.getName(), user);
//    }
//
//    @RequestMapping(value = "/fanoutexchange", method = RequestMethod.GET)
//    public void outFanoutExchange() {
////        UserDTO user = new UserDTO();
////        user.setId(UUID.randomUUID().toString());
////        user.setName("chenhuaijie");
////        rabbitMqSender.sendMessage(outMessageFancoutExchange.getName(), "", user);
//    }
}
